package com.mpyy.pojo;

import lombok.*;

/**
 * @version 1.0
 * @Description Paging
 * @Author JW
 * @Date 2022-02-18 19:41
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Paging {
    private Integer page;
    private Integer limit;
    private Integer currentPage;

    public Integer getCurrentPage() {
        currentPage = (page - 1) * limit;
        return currentPage;
    }

    public Integer getPage() {
        return (page - 1) * limit;
    }
}
